/*
  学习目标：Redux设计-reducer的拆分与合并

  步骤：
     1. 把reducer按功能模块，拆分成不同的文件
      💥 按功能模块名称命名文件，命名reducer函数
      2. reducer/index.js中合并reducer
      3. 导入rootReducer，传给creatorstore
  
     */

import { combineReducers } from "redux";
import todoReducer from "./todo";
import userReducer from "./user";

const rootReducer = combineReducers({
  todo: todoReducer,
  user: userReducer,
});
export default rootReducer;
